package controller

import (
	"fmt"
	"net/http"
	"text/template"

	"gitee.com/shuwenhe/shuwen/regist/dao"
)

func Regist(w http.ResponseWriter, r *http.Request) {
	phone := r.PostFormValue("phone")
	password := r.PostFormValue("password")
	fmt.Println("phone = ", phone, password)
	dao.Regist(phone, password)
	t := template.Must(template.ParseFiles("view/page/user/regist.html"))
	t.Execute(w, "")
}
